package cn.tp.ksoft.civil_driver.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by zhusong on 16/5/8.
 */
public class BrandVo implements Parcelable {
    private int id;
    private String name; 
    private String firstletter;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFirstletter() {
        return firstletter;
    }

    public void setFirstletter(String firstletter) {
        this.firstletter = firstletter;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeString(name);
        dest.writeString(firstletter);
    }
    public BrandVo(){}

    public BrandVo(Parcel src) {
        id = src.readInt();
        name = src.readString();
        firstletter = src.readString();
    }

    public static final Creator<BrandVo> CREATOR = new Creator<BrandVo>() {
        @Override
        public BrandVo createFromParcel(Parcel source) {
            return new BrandVo(source);
        }

        @Override
        public BrandVo[] newArray(int size) {
            return new BrandVo[size];
        }
    };
}
